Skip to content

docs: refresh all docs for embedded-python runtime layer and offline install - #10

Merged
jimbrig merged 2 commits into
mainfrom
docs/runtime-docs-refresh
Jun 9, 2026
Merged

jimbrig merged 2 commits into
mainfrom
docs/runtime-docs-refresh

Conversation

@jimbrig

@jimbrig jimbrig commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • README gains a technical architecture section on the embedded CPython layer (python/osgeo_utils, lazy Py_Initialize(), session-scoped PYTHONPATH), an offline/air-gapped install section, and PYTHONPATH in the activation list
  • Vignette adds an embedded-python algorithm walkthrough (gdal driver gpkg validate via gdal_alg() + alg$output()) and the offline install path
  • AGENTS.md bundle contract now includes python/osgeo_utils and PYTHONPATH activation; verification contract includes the gpkg validate smoke test
  • dev/docs aligned with current implementation: bundle contents (bin, include, lib, share, python), CI job descriptions (osgeo_utils staging, embedded-python smoke test, release-from-job-1 note), activate_gdal_runtime() return value, new ModuleNotFoundError: osgeo_utils triage entry, and removal of references to the nonexistent tools/audit_gdal_bundle.ps1
  • install_gdal_runtime() roxygen documents the offline/manual install path and clarifies the fallback_zip default is not shipped (docs portion of docs/enhancement: clarify inst/extdata fallback zip availability and document offline install path #5)

Test plan

  • roxygen2::roxygenise() regenerates man/ cleanly
  • rmarkdown::render() of the vignette succeeds

…install

- README: new technical section on embedded CPython / osgeo_utils, offline
  air-gapped install instructions, PYTHONPATH in activation list
- vignette: embedded-python algorithm example (driver gpkg validate) and
  offline install section
- AGENTS.md: bundle contract includes python/osgeo_utils and PYTHONPATH
- dev/docs: align overview, ci/release, runtime api, troubleshooting, and
  toolchain notes with current bundle contents and smoke tests; remove
  references to nonexistent tools/audit_gdal_bundle.ps1; add osgeo_utils
  ModuleNotFoundError triage entry
- roxygen: document offline install path for install_gdal_runtime() (#5)
@jimbrig jimbrig self-assigned this Jun 9, 2026
@jimbrig jimbrig added the documentation Documentation related tasks label Jun 9, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for embedded-python GDAL algorithms (such as gdal driver gpkg validate) by bundling the pure-python osgeo_utils package and configuring PYTHONPATH during runtime activation. It also documents offline/air-gapped installation procedures and updates troubleshooting guides. The review feedback suggests improving the default behavior of fallback_zip to avoid pointing to a non-existent file, and ensuring consistent package-name prefixing in the troubleshooting documentation to prevent user errors.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread R/gdal_runtime.R Outdated
Comment on lines +66 to +69
#' Note the packaged `fallback_zip` default
#' (`inst/extdata/gdal-ucrt64-fallback.zip`) is not shipped with the package
#' (a full runtime bundle is too large to vendor); the fallback path only
#' applies when you provide a `fallback_zip` yourself.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The documentation states that the default fallback_zip (inst/extdata/gdal-ucrt64-fallback.zip) is not shipped with the package. This creates a contradiction where the documented default path is guaranteed to be non-existent for end-users.

To improve clarity and avoid user confusion, consider changing the default behavior of fallback_zip to NULL (meaning no fallback is attempted unless explicitly provided), rather than pointing to a non-existent package file by default. If this is done, the documentation can be simplified to state that no fallback is used by default.

#' Note that no default fallback zip is shipped with the package (a full
#' runtime bundle is too large to vendor); the fallback path only applies
#' when you provide a \\code{fallback_zip} yourself.

Comment thread dev/docs/05-troubleshooting.md Outdated
Comment on lines +67 to +68
if missing, reinstall: `install_gdal_runtime(overwrite = TRUE)`
- run `activate_gdal_runtime()` and confirm

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In the troubleshooting instructions, some function calls are prefixed with the package name (e.g., gdalraster.windows::gdal_home()), while others are not (e.g., install_gdal_runtime() and activate_gdal_runtime()).

To prevent object not found errors for users who have not attached the package via library(gdalraster.windows), and to maintain consistency, all package-specific functions should be fully qualified.

Suggested replacement:

  if missing, reinstall: `gdalraster.windows::install_gdal_runtime(overwrite = TRUE)`
- run `gdalraster.windows::activate_gdal_runtime()` and confirm

@jimbrig
jimbrig merged commit a3cc49a into main Jun 9, 2026
4 checks passed
@jimbrig
jimbrig deleted the docs/runtime-docs-refresh branch June 9, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation related tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant